/**
 *
 */
package cre.gutwo.domain;

import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

/**
 * @author Cre.Gu
 */
public class DataModel {

    /**
     * 存放excel的一行数据
     */
    private Map<String, String> model;

    /**
     * DeviceInfo是否有匹配
     */
    private boolean deviceInfoFound = true;

    /**
     * 1-hw,2-sw
     */
    private String type;

    public DataModel() {
        model = new LinkedHashMap<String, String>();
    }

    public Map<String, String> getModel() {
        return model;
    }

    public void setModel(Map<String, String> model) {
        this.model = model;
    }

    public int size() {
        return model.size();
    }

    public boolean isEmpty() {
        return model.isEmpty();
    }

    public boolean containsKey(Object key) {
        return model.containsKey(key);
    }

    public boolean containsValue(Object value) {
        return model.containsValue(value);
    }

    public String get(Object key) {
        return model.get(key);
    }

    public String put(String key, String value) {
        return model.put(key, value);
    }

    public String remove(Object key) {
        return model.remove(key);
    }

    public void putAll(Map<? extends String, ? extends String> m) {
        model.putAll(m);
    }

    public void clear() {
        model.clear();
    }

    public Set<String> keySet() {
        return model.keySet();
    }

    public Collection<String> values() {
        return model.values();
    }

    public Set<Entry<String, String>> entrySet() {
        return model.entrySet();
    }

    public boolean equals(Object o) {
        return model.equals(o);
    }

    public int hashCode() {
        return model.hashCode();
    }

    public boolean isDeviceInfoFound() {
        return deviceInfoFound;
    }

    public void setDeviceInfoFound(boolean deviceInfoFound) {
        this.deviceInfoFound = deviceInfoFound;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return model.toString();
    }

}
